import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/mutexPoolGroup/add',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: 'api/mutexPoolGroup/del',
    method: 'delete',
    data
  })
}

export function edit(data) {
  return request({
    url: 'api/mutexPoolGroup/edit',
    method: 'put',
    data
  })
}

export function checkMutexGroupData(data) {
  return request({
    url: 'api/mutexPoolGroup/checkAppData',
    method: 'post',
    data
  })
}

export default { add, del, edit, checkMutexGroupData }
